<?
		include("dbconn.inc");
		include("dbfuc.inc");
		include("session.inc");		
		$adminuser=$_SESSION["adminuser"];
		$adminid=$_SESSION["adminid"];
		$admindb=$_SESSION["admindb"];
		
	if(session_is_registered("admindb") )
	{
		if(($adminuser!="") && (($adminid!="") || ($adminid!=0)))
		{	
?>		
<html>
<head>
<title>Activation Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="javascript">
<!--
function dateSet()
		{
		   var dt=new Date();
   		   d11=dt.getDate();
   		   dt.setDate(d11);
   		   day=dt.getDate();
   		   mon=dt.getMonth();
   		   mon++;
   		   year=dt.getYear();
		   document.frm.sday.selectedIndex=day-1;
   		   document.frm.smonth.selectedIndex=mon-1;
  		   document.frm.eday.selectedIndex=day-1;
   		   document.frm.emonth.selectedIndex=mon-1;
       }
//-->
</SCRIPT>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="dateSet()">
<? include "allheader.php"  ?>	

	<form name="frm" method="post" action="datewiselist.php" target="nijiframe" >
  <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#339966">
    <tr>
      <td><table width="98%" border="0" align="center" cellpadding="4" cellspacing="4" bgcolor="#FFFFFF">
        <tr align="left" valign="middle" bordercolor="#FFFFFF" bgcolor="A6A6A6">
          <td height="29" colspan="7" bgcolor="#FFFFFF"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#339966">Select a period for Datewise 
            Joining List </font></b></font></td>
        </tr>
        <tr bordercolor="#999999" bgcolor="#99CCFF">
          <td width="99" align="right" valign="middle" bgcolor="#FFFFFF"><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#000000" size="2">Start 
            Date</font></font></div></td>
          <td width="5" align="right" valign="middle" bgcolor="#FFFFFF"><div align="left"><strong><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#000000" size="2">:</font></font></strong></div></td>
          <td width="267" bgcolor="#FFFFFF"><select name="sday">
              <option value="01" selected>01</option>
              <option value="02">02</option>
              <option value="03">03</option>
              <option value="04">04</option>
              <option value="05">05</option>
              <option value="06">06</option>
              <option value="07">07</option>
              <option value="08">08</option>
              <option value="09">09</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
              <option value="20">20</option>
              <option value="21">21</option>
              <option value="22">22</option>
              <option value="23">23</option>
              <option value="24">24</option>
              <option value="25">25</option>
              <option value="26">26</option>
              <option value="27">27</option>
              <option value="28">28</option>
              <option value="29">29</option>
              <option value="30">30</option>
              <option value="31">31</option>
            </select>
              <select name="smonth">
                <option value="01" selected>01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
              </select>
              <select name="syear">
                <option value="2008">2008</option>
                <option value="2009">2009</option>
                <option value="2010">2010</option>
              </select>          </td>
          <td width="70" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">End 
            Date</font></td>
          <td width="5" bgcolor="#FFFFFF"><strong><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#000000" size="2">:</font></font></strong></td>
          <td width="209" bgcolor="#FFFFFF"><select name="eday">
            <option value="01" selected>01</option>
            <option value="02">02</option>
            <option value="03">03</option>
            <option value="04">04</option>
            <option value="05">05</option>
            <option value="06">06</option>
            <option value="07">07</option>
            <option value="08">08</option>
            <option value="09">09</option>
            <option value="10">10</option>
            <option value="11">11</option>
            <option value="12">12</option>
            <option value="13">13</option>
            <option value="14">14</option>
            <option value="15">15</option>
            <option value="16">16</option>
            <option value="17">17</option>
            <option value="18">18</option>
            <option value="19">19</option>
            <option value="20">20</option>
            <option value="21">21</option>
            <option value="22">22</option>
            <option value="23">23</option>
            <option value="24">24</option>
            <option value="25">25</option>
            <option value="26">26</option>
            <option value="27">27</option>
            <option value="28">28</option>
            <option value="29">29</option>
            <option value="30">30</option>
            <option value="31">31</option>
          </select>
            <select name="emonth">
              <option value="01" selected>01</option>
              <option value="02">02</option>
              <option value="03">03</option>
              <option value="04">04</option>
              <option value="05">05</option>
              <option value="06">06</option>
              <option value="07">07</option>
              <option value="08">08</option>
              <option value="09">09</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
            </select>
            <select name="eyear">
              <option value="2008">2008</option>
              <option value="2009">2009</option>
              <option value="2010">2010</option>
            </select></td>
          <td width="175" bgcolor="#FFFFFF"><font color="#70CAFA">
            <input type="submit" name="Submit" value="Submit">
          </font></td>
        </tr>

      </table></td>
    </tr>
  </table>
    </form> 
<br>
<iframe src="" scrolling="yes" name="nijiframe" frameborder="0" width="100%" height="100%"></iframe>
</body>
</html>
<?
	
	}
	}
	else
	{
		$errormsg="Your session is expeired. Please login again.";
		header("location: index.php?error=$errormsg");
	}
?>